from flask import Flask, render_template

app = Flask(__name__)


@app.route("/test")
def test():
    return "test"


@app.route("/index")
def index():
    return render_template("index.html")


if __name__ == '__main__':
    app.debug = True
    # 这里host一定要写0.0.0.0 写127.0.0.1的无法访问 ——_——
    app.run(host="0.0.0.0", port=8080)
